package TakeAwaySystem;

import java.io.File;
import java.util.List;

/**
 * @author Vv
 * @version 1.0
 * @project coding_learn
 * @description
 * @date 2023/9/25 22:00:49
 */
public abstract class User {
    public int Id;
    public String Name;
    //public String parrword;
    public String password;

    public static final int ID = 0;
    public static final int NAME = 1;

    public User() {

    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public User(int id, String name, String password) {
        Id = id;
        Name = name;
        this.password = password;
    }

    public int getId() {
        return Id;
    }

    public void setId(int id) {
        Id = id;
    }

    public String getName() {
        return Name;
    }

    public void setName(String name) {
        Name = name;
    }


    public abstract int menu();
    public abstract void  Operation(int n);
    public abstract User userLoginOrRegistered(File file);

    //public abstract List<User> fileToList(File file);
}
